<!DOCTYPE HTML>
<title>Canvas test: toDataURL.zerosize</title>
<!--[if IE]><script src="../excanvas/excanvas.js"></script><![endif]-->
<script src="../tests.js"></script>
<link rel="stylesheet" href="../tests.css">
<link rel="prev" href="toDataURL.nocontext.html" title="toDataURL.nocontext">
<link rel="next" href="toDataURL.primarycolours.html" title="toDataURL.primarycolours">
<body class="show_output">
<p>
 <a href="toDataURL.nocontext.html" accesskey="p" title="[p] toDataURL.nocontext">&lt;</a>
 <a href="index.html">[index]</a>
 <a href="toDataURL.primarycolours.html" accesskey="n" title="[n] toDataURL.primarycolours">&gt;</a>
<h1><a href="index.toDataURL.html">toDataURL</a>.zerosize</h1>
<p class="desc">toDataURL on zero-size canvas returns 'data:,'</p>
<div class="refs">References:
<ul>
<li><a href="spec.html#testrefs.toDataURL.zerosize">toDataURL.zerosize</a>

</ul>
</div>

<p class="output">Actual output:</p>
<canvas id="c" class="output" width="0" height="0"><p class="fallback">FAIL (fallback content)</p></canvas>

<ul id="d"></ul>
<script>
_addTest(function(canvas, ctx) {

var data = canvas.toDataURL();
_assertSame(data, 'data:,', "data", "'data:,'");


});
</script>

